package com.yc.study.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.study.entity.Answer;
import com.yc.study.vo.AnswerVo;

/**
 * 服务类
 *
 * @author 王妍
 * @since 2022-02-20
 */
public interface IAnswerService extends IService<Answer> {
  /**
   * 加载学生的问题列表
   *
   * @param answerVoPage
   * @param answerVo
   * @return 学生问题列表
   */
  Page<AnswerVo> loadPageVoByStudentId(Page<AnswerVo> answerVoPage, AnswerVo answerVo);

  /**
   * 通过老师Id获取问题页
   *
   * @param answerVoPage
   * @param answerVo
   * @return 老师的问题页
   */
  Page<AnswerVo> loadPageVoByTeacherId(Page<AnswerVo> answerVoPage, AnswerVo answerVo);
}
